<div class='fui-page fui-page-current'>
	<div class='fui-content member-page'>
			<div style="margin:0.5rem;">
					<div class="memlogo-area" style="background: #55bd47;">
						<div class="memlogo">
							<img ng-src="{{tomedia(pagedata.member.avatar) || '../core/resource/images/gw-user.png'}}">
						</div>
						<div class="name">{{pagedata.member.nickname || '匿名'}}</div>
						<br>
						<div class="name">{{pagedata.member.mobile || '无手机号'}} <span class="label label-warning" style="" href="javascript:;">{{pagedata.level.title || '默认等级'}}</span></div>
						<div class="code">
							<div class="jylabel jylabel-info" href="javascript:;" ng-click="access_json('jy_newganfee/credit_log//type=3')" style="border: 1px solid #fff;color:#fff;">日志</div>
						</div>
						<div class="bot">
							<h5 href="javascript:;">我的收益 
							<a ng-click="access_json('/commission/')" ><span style="color:#f60;line-height: 1">结算</span></a> 
							<span class="r-f label label-warning" style="font-size:0.7rem;border: 1px solid  #f0ad4e;color:#fff;" ng-click="pagedata.showzhuan=true">兑换等级</span>						
							</h5>
							<div class="jy-3">
							<h2 style="margin-top:0">{{pagedata.allmoney || '0.00'}} </h2>
							</div>
							<div class="jy-2" style="width:66%;margin-top:0.3rem">
								<span class="r-f label label-info" style="font-size:0.7rem;border: 1px solid  #fff;color:#fff;" href="javascript:;" ng-click="access_json('jy_newganfee/down/')">我的推荐</span>
								<span class="r-f label label-warning" style="font-size:0.7rem;margin-right:0.5rem;border: 1px solid #f0ad4e;" href="javascript:;" ng-click="access_json('jy_newganfee/rank/')">排行</span>
							</div>
						</div>
					</div>
					<!--<div class="tips tips-yellow" style="margin-top:-0.8rem">
						<i class="fa fa-bullhorn"></i> [<red>温馨提示</red>]：{{pagedata.tips}}
					</div>-->
			</div>
			
			<div class="fixed-title" style="margin-top:1rem">
							 <span class="befirst spacing">
								 <span class="icon icon-fengexianzuo" style="font-size:2rem;color:#666"></span>
							 </span> 
							 <span class="title-text bold" style="color:#333;line-height:2rem">收益明细</span> 
							 <span class="spacing">
								 <span class="icon icon-fengexianyou" style="font-size:2rem;color:#666"></span>
							 </span>
			</div>
			<div class='content-empty' ng-show="!pagedata.list || pagedata.list.length<=0">
				<i class='fa fa-comment-o'></i><br/>暂时没有任何记录!
			</div>
			<div style="padding:0 0.5rem">
			<div class='fui-list-group container' ng-show="pagedata.list.length>0" >
				<div class="fui-list goods-item" ng-repeat="item in pagedata.list">
					<div class="fui-list-media">
						<!--<img ng-if="item.member.avatar" ng-src="{{tomedia(item.member.avatar)}}" class="round" style="width:2rem;height:2rem">-->
						<i class="icon icon-dixiaofei"></i>
					</div>
					<div class="fui-list-inner">
						<div class='title'>
							<span ng-show="item.is_add==1" class="label label-success">{{item.is_addtitle}}</span>
							<span ng-show="item.is_add!=1" class="label label-danger">{{item.is_addtitle}}</span>
							<span class="red">得{{item.typetitle}}：{{item.realmoney}}</span>
							<span class="gray" style="font-size:0.6rem;"> {{item.type==1?'个':'元'}}</span>
							<span class="gray" style="font-size:0.6rem;">(总佣金:￥{{item.money}})</span>
						</div>
						<div class='gray'>扣复消金:￥{{item.fufee}}</div>
						<div ng-if="item.gongfee>0" class='gray'>扣贡献奖:￥{{item.gongfee}}</div>
						<div ng-if="item.ganfee>0" class='gray'>扣感恩奖:￥{{item.ganfee}}</div>
						<div class='gray'>{{item.createtime}}</div>
					</div>
					<div class='fui-list-angle' style="width:auto">
						<span class='fui-label fui-label-default gray' style="background:#f2f2f2;border-radius:0.2rem;">{{item.statustitle}}</span>
					</div>
				</div>
			</div>
			</div>
	</div>
</div>
<div ng-if="pagedata.showzhuan" class="popup">
	<div class="popup-body">
		<div class="popup-center" style="background:#fc6d60">
			<style>
				input{ caret-color: #fff}
				.fui-cell-group .fui-cell .fui-cell-info  ::-webkit-input-placeholder{
					color: #fff
				}
				.fui-cell-group .fui-cell .fui-cell-info {
					font-size: 0.85rem;
					color: #fff;
				}
			</style>
			<i class="closed icon icon-cuowu" ng-click="pagedata.showzhuan=false"></i>
			 <div class='fui-cell-group fui-cell-group-o' style="margin:0.5rem 2rem;padding-top:0.5rem;background:#fc6d60">
				<div class='fui-cell-title c' style="color:#fff">您正在“等级兑换”操作
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;color:#fff'><i class="icon icon-wo1" style="font-size:0.8rem"></i> 兑换等级：</div>
					<div class='fui-cell-info' style='color:#333'>
						<select class="weui_select" ng-change="pagedata.upzhuanfee()" ng-model="pagedata.post.id">
							<option ng-repeat="q in pagedata.levels" value="{{q.id}}">{{q.title}}</option>
						</select>
					</div>
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;color:#fff'><i class="icon icon-jifen" style="font-size:0.8rem"></i> 消耗{{pagedata.post.credittitle}}：</div>
					<div class='fui-cell-info'>{{pagedata.post.fee}} 个</div>
				</div>
			</div>
			<div class="weui_btn_area" style="margin:2rem;">
				<a class='weui_btn weui_btn_primary' style="border-radius:1rem;background-color:#fff;color:#fc6d60" ng-click="post(pagedata.post,'post')">确认兑换</a>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('common/pluginnav',true)"></div>
<script>
scope.tool.get_list('jy_newganfee/renwu/fenlist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_newganfee/renwu/fenlist/');
}
scope.pagedata.upzhuanfee=function(){
	scope.pagedata.post=scope.pagedata.levels[scope.pagedata.post.id];
}
</script>